package cgl.sensorgrid.sopac.gps.filters;

public class testRunTime {
    public testRunTime() {
    }


    public void test() {
        Runtime rt = Runtime.getRuntime();

        //Copy Accumulated data File to Rdahmm Dir
        try {
            String filePath =
                    "/home/gaydin/sensorgrid/data/rdahmm/data/RAAP/RAAP_2006_06_12-02_42_24_PM.xyz";
            String f2 =
                    "/home/gaydin/sensorgrid/data/rdahmm/eval/RAAP/RAAP_0.xyz";

            String command = "cp " + filePath + " " + f2;
            System.out.println("[RdahmmFilter] --> Copying file : " + command);
            Process p = rt.exec(command);
            p.waitFor();
            p.destroy();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }


    public static void main(String[] args) {
        try {
            testRunTime t = new testRunTime();
            t.test();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
